Optimal. Leaf size=49 \[ \frac{(d \tan (a+b x))^{n+3}}{b d^3 (n+3)}+\frac{(d \tan (a+b x))^{n+1}}{b d (n+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0511222, antiderivative size = 49, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {2607, 14} \[ \frac{(d \tan (a+b x))^{n+3}}{b d^3 (n+3)}+\frac{(d \tan (a+b x))^{n+1}}{b d (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2607
Rule 14
Rubi steps
\begin{align*} \int \sec ^4(a+b x) (d \tan (a+b x))^n \, dx &=\frac{\operatorname{Subst}\left (\int (d x)^n \left (1+x^2\right ) \, dx,x,\tan (a+b x)\right )}{b}\\ &=\frac{\operatorname{Subst}\left (\int \left ((d x)^n+\frac{(d x)^{2+n}}{d^2}\right ) \, dx,x,\tan (a+b x)\right )}{b}\\ &=\frac{(d \tan (a+b x))^{1+n}}{b d (1+n)}+\frac{(d \tan (a+b x))^{3+n}}{b d^3 (3+n)}\\ \end{align*}
Mathematica [A] time = 1.14592, size = 78, normalized size = 1.59 \[ \frac{d (d \tan (a+b x))^{n-1} \left (2 \left (-\tan ^2(a+b x)\right )^{\frac{1-n}{2}}+\tan ^2(a+b x) \sec ^2(a+b x) (\cos (2 (a+b x))+n+2)\right )}{b (n+1) (n+3)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.139, size = 0, normalized size = 0. \begin{align*} \int \left ( \sec \left ( bx+a \right ) \right ) ^{4} \left ( d\tan \left ( bx+a \right ) \right ) ^{n}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.71338, size = 151, normalized size = 3.08 \begin{align*} \frac{{\left (2 \, \cos \left (b x + a\right )^{2} + n + 1\right )} \left (\frac{d \sin \left (b x + a\right )}{\cos \left (b x + a\right )}\right )^{n} \sin \left (b x + a\right )}{{\left (b n^{2} + 4 \, b n + 3 \, b\right )} \cos \left (b x + a\right )^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (d \tan{\left (a + b x \right )}\right )^{n} \sec ^{4}{\left (a + b x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]